package com.driver.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @description 日志类型
 */
public enum LogType implements IEnum<Integer> {

    RETURN(0, "返回"),
    APPLY(1, "使用");

    @JsonValue
    private final Integer code;

    private final String message;

    LogType(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
